package study.spring.core.aop;

import java.beans.Beans;
import java.time.LocalTime;
import org.springframework.stereotype.Component;

@Component
public class TargetObject {

  // Spring Aop 仅method 可作为(join point)连接点
  public void joinPoint() {
    System.out.println("this is a join point");
  }

  public int joinPoint2(String s, LocalTime time) {
    System.out.println("此时执行的是joinPoint2方法, 接收的参数是: " + s + " " + time);
    return 1;
  }

}
